<template>
  <div class="app">
    <h1>当前计数为：{{ count }}</h1>
    <h1>双倍快乐: {{ dobule }}</h1>
    <button @click="increment">+</button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      count: 1,
    }
  },
  methods: {
    increment() {
      this.count += 1
    },
  },
  computed: {
    dobule() {
      return this.count * 2
    },
  },
}
</script>
<style
  lang="scss"
  scoped
></style>
